/* internal/js/form.js */

function showFieldMessage (msgElem, html) {
	document.getElementById(msgElem).innerHTML =
		'<span class="errorMessage">' + html + '</span>';
}

function showFieldRequired (msgElem) {
	showFieldMessage(msgElem, 'Required');
}

function hideFieldMessage (msgElem) {
	document.getElementById(msgElem).innerHTML = '';
}

function showResults (html) {
	document.getElementById('results').innerHTML = html;
}

function clearResults () {
	document.getElementById('results').innerHTML = '';
}

function showDialog (message) {
	openModalDialog('ORDRS', message);
	//alert(message);
}


